﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Evaluate/Evaluate.master" AutoEventWireup="true"
    CodeFile="BaseList.aspx.cs" Inherits="Evaluate_BaseList" StylesheetTheme="Content" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <ul class="topmenu">
        <li><a href="BaseNew.aspx">添加项目</a></li>
    </ul>
    <div class="clear">
    </div>
    <asp:GridView ID="UserGrid" runat="server" DataKeyNames="BaseId" OnRowDataBound="UserGrid_RowDataBound"
        Width="100%" Caption="<span>基础数据项目列表</span>" OnRowDeleting="UserGrid_RowDeleting">
        <Columns>
            <asp:TemplateField HeaderText="序号">
                <ItemStyle HorizontalAlign="Center" />
                <HeaderStyle Width="30px" />
                <ItemTemplate>
                    <asp:Label ID="ID" runat="server" ForeColor="#666666"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="项目名称">
                <ItemTemplate>
                    <asp:Label ID="BaseName" runat="server" Text='<%# Eval("BaseName") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="总分">
                <ItemStyle Width="30px" />
                <ItemTemplate>
                    <asp:Label ID="TotalScore" runat="server" Text='<%# Eval("TotalScore","{0:0}") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField>
                <ItemStyle HorizontalAlign="Right" />
                <ItemTemplate>
                    <asp:HyperLink ID="ButtonEdit" runat="server" NavigateUrl='<%# Eval("BaseId","BaseNew.aspx?BaseId={0}") %>'>编辑</asp:HyperLink>
                    <asp:LinkButton ID="ButtonDelete" runat="server" CommandName="Delete">删除</asp:LinkButton>
                </ItemTemplate>
                <ItemStyle Width="80px" />
            </asp:TemplateField>
        </Columns>
        <HeaderStyle HorizontalAlign="Left" />
    </asp:GridView>
</asp:Content>
